package ex3;

public class 链家地产代理 implements Buyer{

    //被代理的目标对象
    private Buyer buyer;

    public void setBuyer(Buyer buyer) {
        this.buyer = buyer;
    }

    @Override
    public void havealook() {
        System.out.println("--链家前期准备工作--");
        System.out.println("查找房源.");
        System.out.println("联系卖家.\n");
        this.buyer.havealook();
        System.out.println("\n--后期跟踪--");
        System.out.println("与卖家沟通价格");
        System.out.println("中介费 3%");
    }
}
